package www.ym.com.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 套餐与菜品对应的关系表
 */
@Data
public class SetmealDish implements Serializable {

    public static final long SerialVersionUID=1L;

    private  Long id;
    //套餐id

    private  Long setmealId;

    //菜品id
    private  Long dishId;

    //菜品名称
    private String name;

    //菜品价格
    private BigDecimal price;

    //菜品份数
    private Integer copies;


    @TableField(fill = FieldFill.INSERT) //插入时填充字段
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)  //插入和修改时填充字段
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT)   //插入时填充字段
    private Long createUser;
//
    @TableField(fill = FieldFill.INSERT_UPDATE)  //插入和修改时填充字段
    private Long updateUser;

}
